package cn.wp.ewallet.wallet.scheduler;

import cn.wp.common.core.plugin.scheduler.SchedulerRunnable;
import cn.wp.common.core.plugin.scheduler.SchedulerTask;
import cn.wp.common.core.util.ApplicationContextUtil;
import cn.wp.ewallet.wallet.service.AutoCollectService;
import cn.wp.ewallet.wallet.service.TransferStatusConfirmService;

/**
 * 自动归集
 * Created by zhangyongli on 2020/1/13
 */

public class TransferStatusConfirmRunnable extends SchedulerRunnable {

    public TransferStatusConfirmRunnable(SchedulerTask schedulerTask) {
        super(schedulerTask);
    }

    @Override
    public void runStart() {
        TransferStatusConfirmService transferStatusConfirmService = ApplicationContextUtil.getBean(TransferStatusConfirmService.class);
        transferStatusConfirmService.execute();

    }

    @Override
    public void runFinish(SchedulerTask schedulerTask) {
        logger.info("转账交易状态确认执行完成");
    }
}
